Get Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorizaion --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.manka.tz/api/v1/analysis/1d'
-F fullname=Hussein \
-F 'file=@AirtelMoney_7876543_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \
Response Sample
- Status OK Response
200 OK
[
{
"name": "INNOCENT XXXXX",
"account": "25569XXXXXX",
"contacts": "25569XXXXXX",
"company": "Airtel",
"start_date": "2023-10-27T00:00:00",
"end_date": "2023-11-11T00:00:00",
"no_of_transactions": 33,
"in_types": [
"bank_to_wallet",
"agent_deposit",
"p2p_received",
"other"
],
"out_types": [
"luku",
"p2p_sent",
"wallet_to_bank",
"agent_withdrawal",
"bill_payment",
"yatosha",
"other"
],
"loan_services": [
"kamilisha"
],
"pars_3d": {
"agent_activity": {
"debit": [
"agent_withdrawal"
],
"credit": [
"agent_deposit"
]
},
"peer_to_peer_activity": {
"debit": [
"p2p_sent"
],
"credit": [
"p2p_received"
]
},
"bank_activity": {
"debit": [
"wallet_to_bank"
],
"credit": [
"bank_to_wallet"
]
},
"loan_activity": {
"debit": [
"kamilisha"
]
},
"bills_activity": {
"debit": [
"bill_payment",
"luku",
"gepg"
]
},
"other": {
"debit": [
"other"
],
"credit": [
"other"
]
}
},
"channels": {}
},
{
"initial_info": {
"account_number": "255692695497",
"first_date": "2023-10-27 00:00:00",
"last_date": "2023-11-11 00:00:00",
"total_days": 16,
"total_active_days": 13
},
"customer_profile": {
"wallet_balance": 0.0,
"total_turnover": 169029.0,
"total_transactions": 33
},
"cash_flow_summary": {
"total_turnover": 169029.0,
"total_cashin": 84489.0,
"total_cashout": 84540.0,
"cashin_to_turnover_percentage": 49.98,
"cashin_transactions": 13,
"cashin_to_total_trans_percentage": 39.39,
"cashout_to_turnover_percentage": 50.02,
"cashout_transactions": 20,
"cashout_to_total_trans_percentage": 60.61
},
"kamilisha_info": {
"total_amount_kamilisha_disbursed": 10489.0,
"max_amount_kamilisha_disbursed": 5540.0,
"number_of_kamilisha_disbursements": 2,
"average_kamilisha_disbursement_amount": 5244.5,
"last_day_of_kamilisha_disbursement": "2023-11-04 00:00:00",
"last_kamilisha_disbursement_amount": 5540.0,
"total_amount_kamilisha_repaid": 0.0,
"max_amount_kamilisha_repaid": 0.0,
"number_of_kamilisha_repayments": 0,
"average_kamilisha_repayment_amount": 0.0,
"last_day_of_kamilisha_repayment": "N/A",
"last_kamilisha_repayment_amount": 0.0
},
"bank_to_wallet": {
"total_bank_to_wallet_amount": 0.0,
"maximum_bank_to_wallet_amount": 0.0,
"no_of_bank_to_wallet_transactions": 0,
"average_bank_to_wallet_amount": 0.0,
"last_day_paid_bank_to_wallet": "N/A",
"last_bank_to_wallet_amount": 0.0
},
"agent_deposit": {
"total_agent_deposit_amount": 74000.0,
"maximum_agent_deposit_amount": 30000.0,
"no_of_agent_deposit_transactions": 11,
"average_agent_deposit_amount": 6727.27,
"last_day_paid_agent_deposit": "2023-11-11 00:00:00",
"last_agent_deposit_amount": 3000.0
},
"p2p_received": {
"total_p2p_received_amount": 0.0,
"maximum_p2p_received_amount": 0.0,
"no_of_p2p_received_transactions": 0,
"average_p2p_received_amount": 0.0,
"last_day_paid_p2p_received": "N/A",
"last_p2p_received_amount": 0.0
},
"other": {
"total_other_amount": 13700.0,
"maximum_other_amount": 5620.0,
"no_of_other_transactions": 5,
"average_other_amount": 2740.0,
"last_day_paid_other": "2023-11-11 00:00:00",
"last_other_amount": 1000.0
},
"luku": {
"total_luku_amount": 0.0,
"maximum_luku_amount": 0.0,
"no_of_luku_transactions": 0,
"average_luku_amount": 0.0,
"last_day_paid_luku": "N/A",
"last_luku_amount": 0.0
},
"p2p_sent": {
"total_p2p_sent_amount": 0.0,
"maximum_p2p_sent_amount": 0.0,
"no_of_p2p_sent_transactions": 0,
"average_p2p_sent_amount": 0.0,
"last_day_paid_p2p_sent": "N/A",
"last_p2p_sent_amount": 0.0
},
"wallet_to_bank": {
"total_wallet_to_bank_amount": 0.0,
"maximum_wallet_to_bank_amount": 0.0,
"no_of_wallet_to_bank_transactions": 0,
"average_wallet_to_bank_amount": 0.0,
"last_day_paid_wallet_to_bank": "N/A",
"last_wallet_to_bank_amount": 0.0
},
"agent_withdrawal": {
"total_agent_withdrawal_amount": 0.0,
"maximum_agent_withdrawal_amount": 0.0,
"no_of_agent_withdrawal_transactions": 0,
"average_agent_withdrawal_amount": 0.0,
"last_day_paid_agent_withdrawal": "N/A",
"last_agent_withdrawal_amount": 0.0
},
"bill_payment": {
"total_bill_payment_amount": 70840.0,
"maximum_bill_payment_amount": 26920.0,
"no_of_bill_payment_transactions": 15,
"average_bill_payment_amount": 4722.67,
"last_day_paid_bill_payment": "2023-11-11 00:00:00",
"last_bill_payment_amount": 2000.0
},
"yatosha": {
"total_yatosha_amount": 0.0,
"maximum_yatosha_amount": 0.0,
"no_of_yatosha_transactions": 0,
"average_yatosha_amount": 0.0,
"last_day_paid_yatosha": "N/A",
"last_yatosha_amount": 0.0
},
"transaction_channels": {},
"statement_check": {
"isvalid": true
}
}
]
- Bad Request Response
400 Bad Request
message: "<The specific error message>"
- Unprocessable Entity
422 Unprocessable file entity
message: "Unprocessable File Entity"
- Rate Limit Error
429 Rate Limited Error
message: "Rate limited resource",
nexttime:"19876543"
Rate Limiting!
Rate Limited Resource Continous Access will lead to blocking an account.
- Internal Server Error
500 Internal Server Error
message: "An Internal Server Error",